#include <stdio.h>
#include <string.h>

#define MAX_URL_SIZE 100

typedef struct{

    char url[MAX_URL_SIZE];
}StackItem;

typedef struct{
    StackItem items[MAX_URL_SIZE];
    int top;
}Stack;

Stack stack;

void init(){
    stack.top = -1;
}

void push(char *url){
    if(stack.top >= MAX_URL_SIZE - 1){
        printf("Stack is full\n");
    }
    stack.top++;
    strcpy(stack.items[stack.top].url, url);
}

void pop(){
    if(stack.top <= -1){
        printf("Stack is empty\n");
    }
    printf("url = %s\n",stack.items[stack.top].url);
    stack.top--;
}

int main() {
    
    init();
    push("https://www.google.com");
    push("https://www.facebook.com");
    push("https://www.instagram.com");
    pop();
    pop();
    pop();

    return 0;
}